## API Report File for "@backstage/plugin-events-backend"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts
import { Config } from '@backstage/config';
import { EventBroker } from '@backstage/plugin-events-node';
import { EventParams } from '@backstage/plugin-events-node';
import { EventPublisher } from '@backstage/plugin-events-node';
import { EventSubscriber } from '@backstage/plugin-events-node';
import express from 'express';
import { HttpPostIngressOptions } from '@backstage/plugin-events-node';
import { Logger } from 'winston';

// @public
export class DefaultEventBroker implements EventBroker {
  constructor(logger: Logger);
  // (undocumented)
  publish(params: EventParams): Promise<void>;
  // (undocumented)
  subscribe(
    ...subscribers: Array<EventSubscriber | Array<EventSubscriber>>
  ): void;
}

// @public
export class EventsBackend {
  constructor(logger: Logger);
  // (undocumented)
  addPublishers(
    ...publishers: Array<EventPublisher | Array<EventPublisher>>
  ): EventsBackend;
  // (undocumented)
  addSubscribers(
    ...subscribers: Array<EventSubscriber | Array<EventSubscriber>>
  ): EventsBackend;
  // (undocumented)
  setEventBroker(eventBroker: EventBroker): EventsBackend;
  start(): Promise<void>;
}

// @public
export class HttpPostIngressEventPublisher implements EventPublisher {
  // (undocumented)
  bind(router: express.Router): void;
  // (undocumented)
  static fromConfig(env: {
    config: Config;
    ingresses?: {
      [topic: string]: Omit<HttpPostIngressOptions, 'topic'>;
    };
    logger: Logger;
  }): HttpPostIngressEventPublisher;
  // (undocumented)
  setEventBroker(eventBroker: EventBroker): Promise<void>;
}
```
